package com.bwie.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @BelongsProject: E-Commerce-Month-01
 * @BelongsPackage: com.bwie.vo
 * @Author: asus
 * @CreateTime: 2025-10-16  13:49
 * @Description:
 * @Version: 1.0
 */
@Data
@ApiModel("用户手机号实体类")
public class UserCodeVo implements Serializable {

    //手机号
    @NotBlank(message = "手机号为必填项，请输入手机号！")
    @Pattern(
            regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",
            message = "手机号必须符合11位正确格式"
    )
    @ApiModelProperty("用户手机号")
    private String phone;

    //验证码
    @TableField(exist = false)
    @ApiModelProperty("用户获取的验证码")
    private String sendCode;


}
